<?php
global $_Payments;
$_Payments = array(
	'11' => array(
		'ID' => '11',
		'TitleCn' => '支付宝',
		'TitleEn' => 'Alipay',
		'ThumbUrl' => '/images/pay/alipay.gif',
		'SendUrl' => '/api/alipay_order/goto.php',
		'SendGoodsPhp' => '/api/alipay_sent/sendgoods.php',
		'SendGoodsFunc' => 'alipay_send_goods_confirm',
	),
	'12' => array(
		'ID' => '12',
		'TitleCn' => 'Paypal',
		'TitleEn' => 'Paypal',
		'ThumbUrl' => '/images/pay/paypal.gif',
		'SendUrl' => '/api/paypal/goto.php',
	),
);

function payment_method($nPaymentID) {
	global $_Payments;
	return ('en' == $_SESSION['LANG'] ? $_Payments[$nPaymentID]['TitleEn'] : $_Payments[$nPaymentID]['TitleCn']);
}
function payment_thumburl($nPaymentID) {
	global $_Payments;
	return $_Payments[$nPaymentID]['ThumbUrl'];
}
function payment_sendurl($nPaymentID) {
	global $_Payments;
	return $_Payments[$nPaymentID]['SendUrl'];
}

?>
